home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_3 / phoonsrc / original / makefile < prev    next >
Makefile  |  1992-07-18  |  12KB  |  373 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  3.  
  4. ###########################################################################
  5. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a12993>
  6. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  7. #
  8. # Platform-specific parameters may be set in the appropriate .cf
  9. # configuration files.  Site-wide parameters may be set in the file
  10. # site.def.  Full rebuilds are recommended if any parameters are changed.
  11. #
  12. # If your C preprocessor doesn't define any unique symbols, you'll need
  13. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  14. # "make Makefile", "make Makefiles", or "make World").
  15. #
  16. # If you absolutely can't get imake to work, you'll need to set the
  17. # variables at the top of each Makefile as well as the dependencies at the
  18. # bottom (makedepend will do this automatically).
  19. #
  20.  
  21. ###########################################################################
  22. # platform-specific configuration parameters - edit ultrix.cf to change
  23.  
  24. # platform:  $XConsortium: ultrix.cf,v 1.20 89/12/22 15:56:14 rws Exp $
  25. # operating system:             Ultrix-32 3.1
  26.  
  27. ###########################################################################
  28. # site-specific configuration parameters - edit site.def to change
  29.  
  30. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  31.  
  32.             SHELL = /usr/misc/ksh
  33.  
  34.               TOP = ../../../mit
  35.       CURRENT_DIR = .
  36.  
  37.                AR = ar cq
  38.   BOOTSTRAPCFLAGS =
  39.                CC = cc
  40.  
  41.          COMPRESS = compress
  42.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  43.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  44.           INSTALL = install
  45.                LD = ld
  46.              LINT = lint
  47.       LINTLIBFLAG = -o
  48.          LINTOPTS = -axz
  49.                LN = ln -s
  50.              MAKE = make
  51.                MV = mv
  52.                CP = cp
  53.            RANLIB = ranlib
  54.   RANLIBINSTFLAGS =
  55.                RM = rm -f
  56.      STD_INCLUDES =
  57.   STD_CPP_DEFINES =
  58.       STD_DEFINES =
  59.  EXTRA_LOAD_FLAGS =
  60.   EXTRA_LIBRARIES =
  61.              TAGS = ctags
  62.  
  63.     PROTO_DEFINES =
  64.  
  65.      INSTPGMFLAGS = -s
  66.  
  67.      INSTBINFLAGS = -m 0755
  68.      INSTUIDFLAGS = -m 4755
  69.      INSTLIBFLAGS = -m 0664
  70.      INSTINCFLAGS = -m 0444
  71.      INSTMANFLAGS = -m 0444
  72.      INSTDATFLAGS = -m 0444
  73.     INSTKMEMFLAGS = -m 4755
  74.  
  75.           DESTDIR =
  76.  
  77.      TOP_INCLUDES = -I$(TOP)
  78.  
  79.       CDEBUGFLAGS = -O
  80.         CCOPTIONS = -Wf,-XNh2000 -Olimit 2000
  81.       COMPATFLAGS =
  82.  
  83.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  84.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  85.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  86.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  87.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  88.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  89.    LDCOMBINEFLAGS = -X -r
  90.  
  91.         MACROFILE = ultrix.cf
  92.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  93.  
  94.     IMAKE_DEFINES =
  95.  
  96.          IRULESRC = $(CONFIGSRC)
  97.         IMAKE_CMD = $(NEWTOP)$(IMAKE) -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)
  98.  
  99.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  100.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  101.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  102.  
  103. ###########################################################################
  104. # X Window System Build Parameters
  105. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  106.  
  107. ###########################################################################
  108. # X Window System make variables; this need to be coordinated with rules
  109. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  110.  
  111.           PATHSEP = /
  112.         USRLIBDIR = $(DESTDIR)/usr/misc/X11/lib
  113.            BINDIR = $(DESTDIR)/usr/misc/X11/bin
  114.           INCROOT = $(DESTDIR)/usr/misc/X11
  115.      BUILDINCROOT = $(TOP)
  116.       BUILDINCDIR = $(BUILDINCROOT)/X11
  117.       BUILDINCTOP = ..
  118.            INCDIR = $(INCROOT)/X11
  119.            ADMDIR = $(DESTDIR)/usr/adm
  120.            LIBDIR = $(USRLIBDIR)
  121.         CONFIGDIR = $(LIBDIR)/config
  122.        LINTLIBDIR = $(USRLIBDIR)/lint
  123.  
  124.           FONTDIR = $(LIBDIR)/fonts
  125.          XINITDIR = $(LIBDIR)/xinit
  126.            XDMDIR = $(LIBDIR)/xdm
  127.            AWMDIR = $(LIBDIR)/awm
  128.            TWMDIR = $(LIBDIR)/twm
  129.            GWMDIR = $(LIBDIR)/gwm
  130.           MANPATH = $(DESTDIR)/usr/man
  131.     MANSOURCEPATH = $(MANPATH)/man
  132.            MANDIR = $(MANSOURCEPATH)n
  133.         LIBMANDIR = $(MANSOURCEPATH)3
  134.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  135.  
  136.        FONTCFLAGS = -t
  137.  
  138.      INSTAPPFLAGS = $(INSTDATFLAGS)
  139.  
  140.             IMAKE = $(IMAKESRC)/imake
  141.            DEPEND = $(DEPENDSRC)/makedepend
  142.               RGB = $(RGBSRC)/rgb
  143.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  144.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  145.         MKDIRHIER = /usr/misc/ksh $(SCRIPTSRC)/mkdirhier.sh
  146.  
  147.         CONFIGSRC = $(TOP)/config
  148.         CLIENTSRC = $(TOP)/clients
  149.           DEMOSRC = $(TOP)/demos
  150.            LIBSRC = $(TOP)/lib
  151.           FONTSRC = $(TOP)/fonts
  152.        INCLUDESRC = $(TOP)/X11
  153.         SERVERSRC = $(TOP)/server
  154.           UTILSRC = $(TOP)/util
  155.         SCRIPTSRC = $(UTILSRC)/scripts
  156.        EXAMPLESRC = $(TOP)/examples
  157.        CONTRIBSRC = $(TOP)/../contrib
  158.            DOCSRC = $(TOP)/doc
  159.            RGBSRC = $(TOP)/rgb
  160.         DEPENDSRC = $(UTILSRC)/makedepend
  161.          IMAKESRC = $(CONFIGSRC)
  162.          XAUTHSRC = $(LIBSRC)/Xau
  163.           XLIBSRC = $(LIBSRC)/X
  164.            XMUSRC = $(LIBSRC)/Xmu
  165.        TOOLKITSRC = $(LIBSRC)/Xt
  166.        AWIDGETSRC = $(LIBSRC)/Xaw
  167.        OLDXLIBSRC = $(LIBSRC)/oldX
  168.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  169.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  170.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  171.      EXTENSIONSRC = $(TOP)/extensions
  172.  
  173.   DEPEXTENSIONLIB =  $(EXTENSIONSRC)/lib/libXext.a
  174.      EXTENSIONLIB =                $(DEPEXTENSIONLIB)
  175.  
  176.           DEPXLIB = $(DEPEXTENSIONLIB)  $(XLIBSRC)/libX11.a
  177.              XLIB = $(EXTENSIONLIB)               $(XLIBSRC)/libX11.a
  178.  
  179.       DEPXAUTHLIB =  $(XAUTHSRC)/libXau.a
  180.          XAUTHLIB =               $(DEPXAUTHLIB)
  181.  
  182.         DEPXMULIB =  $(XMUSRC)/libXmu.a
  183.            XMULIB =               $(DEPXMULIB)
  184.  
  185.        DEPOLDXLIB =  $(OLDXLIBSRC)/liboldX.a
  186.           OLDXLIB =               $(DEPOLDXLIB)
  187.  
  188.       DEPXTOOLLIB =  $(TOOLKITSRC)/libXt.a
  189.          XTOOLLIB =               $(DEPXTOOLLIB)
  190.  
  191.         DEPXAWLIB =  $(AWIDGETSRC)/libXaw.a
  192.            XAWLIB =               $(DEPXAWLIB)
  193.  
  194.  LINTEXTENSIONLIB =  $(EXTENSIONSRC)/lib/llib-lXext.ln
  195.          LINTXLIB =  $(XLIBSRC)/llib-lX11.ln
  196.           LINTXMU =  $(XMUSRC)/llib-lXmu.ln
  197.         LINTXTOOL =  $(TOOLKITSRC)/llib-lXt.ln
  198.           LINTXAW =  $(AWIDGETSRC)/llib-lXaw.ln
  199.  
  200.         XWLIBSRC = $(CONTRIBSRC)/toolkits/Xw
  201.         DEPXWLIB =  $(XWLIBSRC)/libXw.a
  202.         XWLIB =               $(DEPXWLIB)
  203.  
  204.           DEPLIBS = $(LOCAL_LIBRARIES)
  205.  
  206.          DEPLIBS1 = $(DEPLIBS)
  207.          DEPLIBS2 = $(DEPLIBS)
  208.          DEPLIBS3 = $(DEPLIBS)
  209.  
  210. ###########################################################################
  211. # Imake rules for building libraries, programs, scripts, and data files
  212. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  213.  
  214. ###########################################################################
  215. # start of Imakefile
  216.  
  217. # @(#) $Header: /src/X11/contrib/demos/xphoon/RCS/Imakefile,v 1.1 90/03/26 16:42:43 tim Exp Locker: tim $ (LBL)
  218. #
  219. # Copyright (C) 1988 by Jef Poskanzer and Craig Leres.
  220. #
  221. # Permission to use, copy, modify, and distribute this software and its
  222. # documentation for any purpose and without fee is hereby granted, provided
  223. # that the above copyright notice appear in all copies and that both that
  224. # copyright notice and this permission notice appear in supporting
  225. # documentation.  This software is provided "as is" without express or
  226. # implied warranty.
  227.  
  228.        INCLUDES = -I. -I$(TOP) -I$(TOP)/X11 -I$(TOP)/X11/bitmaps
  229. LOCAL_LIBRARIES = $(XLIB)
  230.   SYS_LIBRARIES = -lm
  231.  
  232. # System-dependent options -- xbigphoon is a little big for many Suns
  233. # to compile.
  234. #         DEFINES = -pipe
  235.  
  236.            SRCS1 = xphoon.c fullmoon.c phase.c dtime.c
  237.            OBJS1 = xphoon.o fullmoon.o phase.o dtime.o
  238.  
  239.         PROGRAMS = xphoon
  240.  
  241.             OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
  242.             SRCS = $(SRCS1) $(SRCS2) $(SRCS3)
  243.  
  244. all:: $(PROGRAMS)
  245.  
  246. xphoon: $(OBJS1) $(DEPLIBS1)
  247.      $(RM) $@
  248.     $(CC) -o $@ $(LDOPTIONS) $(OBJS1) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)
  249.  
  250. install:: xphoon
  251.     $(INSTALL) -c $(INSTPGMFLAGS)   xphoon $(BINDIR)
  252.  
  253. install.man:: xphoon.man
  254.     $(INSTALL) -c $(INSTMANFLAGS) xphoon.man $(MANDIR)/xphoon.n
  255.  
  256. depend:: $(DEPEND)
  257.  
  258. $(DEPEND):
  259.     @echo "checking $@ over in $(DEPENDSRC) first..."; \
  260.     cd $(DEPENDSRC); $(MAKE); \
  261.     echo "okay, continuing in $(CURRENT_DIR)"
  262.  
  263. depend::
  264.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  265.  
  266. lint:
  267.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  268. lint1:
  269.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  270.  
  271. clean::
  272.     $(RM) $(PROGRAMS)
  273.  
  274. # Make the export sharchive.
  275. shar: xphoon.shar
  276.  
  277. xphoon.shar: xphoon.shar1 xphoon.shar2 xphoon.shar3 xphoon.shar4
  278.  
  279. xphoon.shar1: README Imakefile Makefile xphoon.man xphoon.c cheapmoon.c bigcheapmoon.c phase.c dtime.c tws.h
  280.     shar -v -c -p X README Imakefile Makefile xphoon.man xphoon.c cheapmoon.c bigcheapmoon.c phase.c dtime.c tws.h >xphoon.shar1
  281.  
  282. cheapmoon.xbm.Z: cheapmoon.xbm
  283.     compress -c cheapmoon.xbm >cheapmoon.xbm.Z
  284.  
  285. cheapmoon.xbm.Z.uu: cheapmoon.xbm.Z
  286.     uuencode cheapmoon.xbm.Z cheapmoon.xbm.Z >cheapmoon.xbm.Z.uu
  287.  
  288. cheapmoon.xbm.Z.uuaa: cheapmoon.xbm.Z.uu
  289.     split -550 cheapmoon.xbm.Z.uu cheapmoon.xbm.Z.uu
  290.  
  291. xphoon.shar2: cheapmoon.xbm.Z.uuaa
  292.     shar -v -c -p X cheapmoon.xbm.Z.uuaa >xphoon.shar2
  293.  
  294. xphoon.shar3: cheapmoon.xbm.Z.uuab
  295.     shar -v -c -p X cheapmoon.xbm.Z.uuab >xphoon.shar3
  296.  
  297. xphoon.shar4: cheapmoon.xbm.Z.uuac
  298.     shar -v -c -p X cheapmoon.xbm.Z.uuac >xphoon.shar4
  299.  
  300. # Unpack the compressed, uuencoded, shared bitmap.
  301. unshar:
  302.     cat cheapmoon.xbm.Z.uu?? > cheapmoon.xbm.Z.uu
  303.     uudecode cheapmoon.xbm.Z.uu
  304.     uncompress cheapmoon.xbm.Z
  305.  
  306. # Make the export tarchive.
  307. tar: xphoon.tar.Z
  308.  
  309. xphoon.tar.Z: xphoon.tar
  310.     rm -f xphoon.tar.Z
  311.     compress xphoon.tar
  312.  
  313. xphoon.tar: README Imakefile Makefile xphoon.man xphoon.c cheapmoon.c bigcheapmoon.c phase.c dtime.c tws.h cheapmoon.xbm bigcheapmoon.xbm
  314.     tar chf xphoon.tar README Imakefile Makefile xphoon.man xphoon.c cheapmoon.c bigcheapmoon.c phase.c dtime.c tws.h cheapmoon.xbm bigcheapmoon.xbm
  315.  
  316. ###########################################################################
  317. # common rules for all Makefiles - do not edit
  318.  
  319. emptyrule::
  320.  
  321. clean::
  322.     $(RM_CMD) \#*
  323.  
  324. Makefile:: $(IMAKE)
  325.  
  326. $(IMAKE):
  327.     @(cd $(IMAKESRC); if [ -f Makefile ]; then \
  328.     echo "checking $@ in $(IMAKESRC) first..."; $(MAKE) all; else \
  329.     echo "bootstrapping $@ from Makefile.ini in $(IMAKESRC) first..."; \
  330.     $(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \
  331.     echo "okay, continuing in $(CURRENT_DIR)")
  332.  
  333. Makefile::
  334.     -@if [ -f Makefile ]; then \
  335.         echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  336.         $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  337.     else exit 0; fi
  338.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  339.  
  340. tags::
  341.     $(TAGS) -w *.[ch]
  342.     $(TAGS) -xw *.[ch] > TAGS
  343.  
  344. ###########################################################################
  345. # empty rules for directories that do not have SUBDIRS - do not edit
  346.  
  347. install::
  348.     @echo "install in $(CURRENT_DIR) done"
  349.  
  350. install.man::
  351.     @echo "install.man in $(CURRENT_DIR) done"
  352.  
  353. Makefiles::
  354.  
  355. includes::
  356.  
  357. ###########################################################################
  358. # dependencies generated by makedepend
  359.  
  360. # DO NOT DELETE
  361.  
  362. xphoon.o: ../../../mit/X11/Xos.h /usr/include/sys/types.h
  363. xphoon.o: /usr/include/strings.h /usr/include/sys/file.h
  364. xphoon.o: /usr/include/sys/time.h ../../../mit/X11/Xlib.h
  365. xphoon.o: ../../../mit/X11/X.h ../../../mit/X11/Xutil.h
  366. xphoon.o: ../../../mit/X11/Xatom.h /usr/include/stdio.h /usr/include/math.h
  367. xphoon.o: tws.h
  368. fullmoon.o: ../../../mit/X11/Xlib.h /usr/include/sys/types.h
  369. fullmoon.o: ../../../mit/X11/X.h bigfullmoon.xbm
  370. phase.o: /usr/include/stdio.h /usr/include/math.h tws.h
  371. dtime.o: tws.h /usr/include/stdio.h /usr/include/sys/types.h
  372. dtime.o: /usr/include/time.h /usr/include/sys/timeb.h
  373.